package com.springboot.blog.service.impl;

import com.springboot.blog.entity.Article;
import com.springboot.blog.dao.ArticleDao;
import com.springboot.blog.service.ArticleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {
    @Resource
    private ArticleDao mapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(Article record) {
        return 0;
    }

    @Override
    public Article selectByPrimaryKey(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Article> selectAll() {
        return null;
    }

    @Override
    public int updateByPrimaryKey(Article record) {
        return 0;
    }
}
